#include "point.h"

float Point::operator[](int i) {
    float b[3] = { m_x,m_y,m_z };
    return b[i];
}
float Point::operator[](int i) const{
    float b[3] = { m_x,m_y,m_z };
    return b[i];
}
bool  Point::operator==(const Point& r)const{
    return (abs(m_x - r.m_x) < 0.02 && abs(m_y - r.m_y) < 0.02 && abs(m_z - r.m_z) < 0.02);
}
